<?php
if(!class_exists("stthemeview")) {
	class stthemeview{
		protected static $_instance = null;
		protected $wpdb = null;

		private $_data = array ();

		public function __construct() {
			global $wpdb;
			$this->wpdb = $wpdb;
		}

		public static function getInstance() {
			if (null === self::$_instance) {
				self::$_instance = new self ();
			}

			return self::$_instance;
		}

		public function getData() {
			return $this->_data;
		}

		public function __set($key, $value) {
			$this->_data [$key] = $value;
		}

		public function __get($key) {
			return $this->_data [$key];
		}
	}
}
?>